import Login from '../pages/login/login'
import Home from '../pages/disk/home/home'
import AllFile from '../pages/disk/allfile/allfile'
import Share from '../pages/disk/share/share'
import Recyle from '../pages/disk/recyle/recyle'
import Photo from '../pages/disk/classify/photo/photo'
import Video from '../pages/disk/classify/video/video'
import Music from '../pages/disk/classify/music/music'
import Other from '../pages/disk/classify/other/other'
import Seed from '../pages/disk/classify/docu/docu'
import Profile from '../pages/disk/profile/profile'
import PageNotFound from '../pages/404/pagenotfound'

export const mainRoutes = [{
    path: '/login',
    component: Login
}, {
    path: '/404',
    component: PageNotFound
}]


export const diskRoutes = [{
    path: '/disk',
    component: Home,
    isShow: true,
    title: '首页',
    icon: 'iconIndex',
    children: []
}, {
    path: '/disk/allfile',
    component: AllFile,
    isShow: true,
    title: '全部文件',
    icon: 'iconFile',
    children: []
},
{
    path: '/disk/allfile/:name',
    component: AllFile,
    isShow: false,
    icon: 'iconFile',
    children: []
},
{
    path: '/disk/classify',
    isShow: true,
    title: '文件分类',
    icon: 'iconFolder',
    children: [
        {
            path: '/disk/classify/photo',
            component: Photo,
            isShow: true,
            icon: 'iconPhoto',
            title: '图片'
        }, {
            path: '/disk/classify/video',
            component: Video,
            isShow: true,
            icon: 'iconVideo',
            title: '视频'
        }, {
            path: '/disk/classify/music',
            component: Music,
            isShow: true,
            icon: 'iconMusic',
            title: '音乐'
        }, {
            path: '/disk/classify/seed',
            component: Seed,
            isShow: true,
            icon: 'iconDocument',
            title: '文档'
        }, {
            path: '/disk/classify/other',
            component: Other,
            isShow: true,
            icon: 'iconOther',
            title: '其他'
        }
    ]
},
{
    path: '/disk/share',
    component: Share,
    isShow: true,
    title: '我的分享',
    icon: 'iconShare',
    children: []
}, {
    path: '/disk/recyle',
    component: Recyle,
    isShow: true,
    title: '回收站',
    icon: 'iconReycle',
    children: []
}, {
    path: '/disk/profile',
    component: Profile,
    isShow: false,
    children: []
},
]